/* 
 * File:   GuiContainer.h
 * Author: pson
 *
 * Created on April 15, 2011, 1:44 PM
 */

#ifndef NRPSTG_GUICONTAINER_H
#define	NRPSTG_GUICONTAINER_H

#include <list>
#include "GuiWidget.h"

using namespace std;

class GuiContainer : public GuiWidget {
protected:
    list<GuiWidget*> _children;

public:
    GuiContainer();
    GuiContainer(GuiRect* rect, GuiProp* prop);
    virtual ~GuiContainer();

    void add_child(GuiWidget* w);
    void remove_child(GuiWidget* w);
    void validate();

//    list<GuiWidget*>* get_children();

    void input(SDL_Event* evt, unsigned int ms);
    void update(unsigned int ms);
    void draw(FontManager* font);

};

#endif	/* NRPSTG_GUICONTAINER_H */

